/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 30318
 * Date: 2023-10-17
 * Time: 17:02
 */
public class Test {
    public static void main(String args[ ]) {
        int a = 10, b = 20, c = 15, d = 40;
        int m1 = a > b ? a : b;
        int m2 = m1 > c ? m1 : c;
        int m3 = m2 > d ? m2 : d;

        System.out.println("The maximum value is: " + m3);
    }
}
